const state = {
  keepAlive: false
}

const mutations = {
  CHANGE_KEEPALIVE: (state) => {
    state.keepAlive = false
  },
  CHANGE_NOKEEPALIVE: (state) => {
    state.keepAlive = true
  }
}

const actions = {
  changeKeepAlive({ commit }) {
    commit('CHANGE_KEEPALIVE')
  },
  changeNoKeepAlive({ commit }) {
    commit('CHANGE_NOKEEPALIVE')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

